]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspacesView: Do not animate primary view geometry when fading
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 7 Jul 2020 10:57:51 +0000 (12:57 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 7 Jul 2020 11:41:54 +0000 (13:41 +0200)
When going straight to the app picker, we fade in the overview instead
of doing the full-blown zoom transition. In order to keep windows at
their floating position, we must apply the same to the view itself
and not transition to the overview geometry when fading.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1353

js/ui/workspacesView.js

index 82a0822bb4df864aa6a7673e58cae321b7776246..b16c1343790a4778bbd5d7d4f16fc0f9033ad8fd 100644 (file)
@@ -558,7 +558,9 @@ class WorkspacesDisplay extends St.Widget {
                     animationType = AnimationType.ZOOM;
                 this._workspacesViews[i].animateToOverview(animationType);
             }
-            this._syncWorkspacesActualGeometry();
+
+            if (!fadeOnPrimary)
+                this._syncWorkspacesActualGeometry();
         }
 
         this._restackedNotifyId =
@@ -586,7 +588,7 @@ class WorkspacesDisplay extends St.Widget {
             Main.layoutManager.getWorkAreaForMonitor(primaryIndex);
         this._getPrimaryView().ease({
             x, y, width, height,
-            duration: ANIMATION_TIME,
+            duration: fadeOnPrimary ? 0 : ANIMATION_TIME,
             mode: Clutter.AnimationMode.EASE_OUT_QUAD,
         });
     }